<?php
  $cart = count($this->cart->contents());
  if($cart > 0){
    $no = 1;
    foreach ($this->cart->contents() as $items) {
      ?>
        <tr>
          <td align="center"><?php echo $no++ ?></td>
          <td><?php echo $items['id']; ?></td>
          <td><?php echo $items['name']; ?></td>
          <td><?php echo $items['qty']; ?></td>
          <td><?php echo $items['price']; ?></td>
          <td><?php echo $jumlah = $items['qty'] * $items['price']; ?></td>
          <td>
            <span class="pull-right">
              <a href="#" onClick="return deleteCart('<?php echo $items['rowid'] ?>')" class="label label-danger" title="Hapus">Hapus</a>
            </span>
          </td>
        </tr>
      <?php
    }
  }else{
    ?>
      <tr>
        <td colspan="7" align="center">Tidak ada data</td>
      </tr>
    <?php
  }
?>